<?php
		$iIDormobilephone=$_POST['iIDormobilephone'];
		$ipassword=$_POST['ipassword'];
		$servername = "127.0.0.1";
		$username = "root";
		$password = "";
		$dbname = "OnlineDeliverOrderSystem_schema";
		$conn = new mysqli($servername, $username, $password, $dbname);
		// 检测连接
		if ($conn->connect_error) {
		    die("连接失败: " . $conn->connect_error);
		}
		
		$sequrySql=sprintf("SELECT * FROM shop WHERE ID='%s' or mobilephone='%s'",$iIDormobilephone,$iIDormobilephone);
		$result = mysqli_query($conn,$sequrySql);
		$rowcount=mysqli_num_rows($result);
		$cnt=0;
		while($row = mysqli_fetch_array($result))
		{
		    if($row['password']==$ipassword){
		    	echo 0;
		    	break;
		    }else{
		    	$cnt++;
		    	if($cnt==$rowcount){
		    		echo 1;
		    		break;
		    	}
		    	contine;
		    }
		}
		$conn->close();
?>